package com.zhongyu.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhongyu.pojo.Store;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface CangKuMapper extends BaseMapper<Store> {


    @Select("SELECT t1.* ,t2.user_code FROM smbms_store t1 JOIN smbms_user t2 ON t1.user_Id=t2.id ${ew.customSqlSegment}")
    @ResultMap("StoreRm")
    List<Store> findAll(Page page, @Param("ew") Wrapper wrapper);

}
